package com.example.easypoi.entity;


import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class Order {

    @Excel(name = "订单号", width = 20)
    private String orderNo;

    @Excel(name = "下单时间", width = 20, exportFormat = "yyyy-MM-dd HH:mm:ss")
    private Date orderTime;

    @Excel(name = "订单金额", width = 15)
    private BigDecimal amount;

    @ExcelCollection(name = "商品列表")
    private List<Product> products;
}